import {MongoClient} from 'mongodb';
import {readAndParseYAML} from "../util";
const config = readAndParseYAML("config.yml");

async function testMongoDBConnection() {
    try {
        const client = new MongoClient(config.database.url);


        await client.connect();

        console.log('MongoDB connection successful');

        // You can perform additional operations here

        await client.close();
    } catch (error) {
        console.error('MongoDB connection error:', error);
    }
}

testMongoDBConnection();
